#include <stdio.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "my_timer.h"
#include "led.h"
#include "driver/timer.h"
extern uint64_t  timer_count;
extern uint64_t  timer_count_value;
int m=0;
uint8_t io_state=0;
int counter_value=0;
int flag=1;
void app_main()
{
    led_init();
    printf("LED成功\n");
    vTaskDelay(1000 / portTICK_PERIOD_MS);
    my_timer_init();
    printf("定时器成功\n");
    while (1)
    {
        vTaskDelay(1000/ portTICK_RATE_MS);
        printf("timer_count:%llu\n",timer_count);
        
        
        // if(timer_count>1)
        // {
            
        //     // printf("timer_count:%u\n",timer_count);
        //     timer_count_value = timer_group_get_counter_value_in_isr(TIMER_GROUP_0,TIMER_0);
        //     print_timer_counter(timer_count_value);
        //     timer_count=0;
        //     m++;
        //     printf("LED反转%d次\n",m);

        // }
    }  
}